package com.lnking.lnkingplace.service;


import com.lnking.lnkingplace.model.dto.inspect.InspectDetailDto;
import com.lnking.lnkingplace.model.dto.inspect.InspectExportDto;
import com.lnking.lnkingplace.model.dto.inspect.InspectToPlaceDto;
import com.lnking.lnkingplace.model.dto.inspect.inspectType.InspectTypeByPlaceDto;
import com.lnking.lnkingplace.model.entity.Inspect;
import com.lnking.lnkingplace.model.entity.InspectResult;
import com.lnking.lnkingplace.model.request.inspect.*;
import com.lnking.starter.mybatis.service.ICustomService;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sn
 * @since 2022-08-20
 */
public interface IInspectService extends ICustomService<Inspect> {

    void add(InspectAddRequest params);

    void update(InspectUpdateRequest params);

    InspectDetailDto getInspectDetailById(String id);

    void result(InspectResultByPlaceRequest  params) throws Exception;

    InspectTypeByPlaceDto getResultList(InspectResultRequest params) throws Exception;

    List<InspectExportDto> export(InspectExportRequest params);

    List<InspectToPlaceDto>  getResult(String id);

    InspectToPlaceDto getResultDetails( String inspectId  ,String placeId);

    List<InspectToPlaceDto> getReview(String id);

    void addIndexByLibrary( IndexByLibraryRequest params);

    void addIndexByWriter(AddIndexRequest params);

    void updateResult(List<InspectResult> params) throws Exception;

    void delIndex(String inspectResultId);

    void placeAdd(InspectAddPlaceRequest params);

    void delete(String id);

    void photos(InspectPhotosRequest params);
}
